package meihua.mylibrary.base;

import android.content.Context;

import meihua.mylibrary.baserx.RxManager;

/**
 * Name: 杜志斌
 * Time: 2017/4/25.
 * Dec:
 */
public abstract class BasePresenter<M, V> {
    public Context mContext;
    public M mModel;
    public V mView;
    public RxManager mRxManage = new RxManager();

    public void setVM(V v, M m) {
        this.mView = v;
        this.mModel = m;
        this.onStart();
    }

    public void onStart() {
    }


    public void onDestroy() {
        mRxManage.clear();
    }
}
